package com.example.test_demo.async.another;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: test_demo
 * @description:
 * @author: yanghua
 * @create: 2021-09-22 12:11
 **/
@JsonIgnoreProperties(ignoreUnknown=true)
public class User {

    private Boolean success = true;
    private Integer code;
    private String msg;
    private Map<Object, Object> data = new HashMap<>();


    public boolean isSuccess() {
        return success;
    }

    public User setSucess(boolean success) {
        this.success = success;
        return this;
    }
    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<Object, Object> getData() {
        data.put("111","111");
        return data;
    }

    public void setData(Map<Object, Object> data) {
        this.data = data;
    }

    private String name;
    private String blog;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBlog() {
        return blog;
    }

    public void setBlog(String blog) {
        this.blog = blog;
    }

    @Override
    public String toString() {
        return "User [name=" + name + ", blog=" + blog + "]";
    }
    public static User sss(){
        User u = new User();
        u.setName("yanghua");
        return u;
    }

}
